﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using TVH.Entidade;

namespace TVH.Web.Code
{
    public class SessionManager
    {

        static SessionManager(){}
        private SessionManager() {
        }
        private static SessionManager _Instance;

        public static SessionManager Instance
        {
            get
            {
                if (_Instance == null)
                {
                    _Instance = new SessionManager();
                }
                return _Instance;
            }
        }

        public Usuario Usuario
        {
            get { return HttpContext.Current.Session["USUARIO"] as Usuario; }
            set { HttpContext.Current.Session["USUARIO"] = value; }
        }
    }
}